// 配置模块的参数&名字
import containersInfo from './devType/containers';
import sceneFieldsInfo from './devType/sceneFields';
import customFieldsInfo from './devType/customFields';


// 容器组件
export const containers = [
    /**
     * ...containersInfo['containersInfo']
    * */
];

// 基础组件
export const basicFields = [];

// 高级组件
export const advancedFields = []

// 定制组件
export const customFields = [
    ...customFieldsInfo['commonInfo'],
    ...customFieldsInfo['waitingInfo'],
    ...customFieldsInfo['windowInfo'],
    ...customFieldsInfo['reportInfo'],
    ...customFieldsInfo['DRCInfo']

];

// 备选--待定
export const bizFields = [];

// 门诊业务组件
export const sceneFields = [
    // 通用组件
    ...sceneFieldsInfo['commonInfo'],

    // 候诊
    ...sceneFieldsInfo['waitingInfo'],

    // 诊室
    ...sceneFieldsInfo['DRCInfo'],

    // 报到机
    ...sceneFieldsInfo['reportInfo'],

    //  信息发布
    ...sceneFieldsInfo['publishInfo'],

    // 窗口屏
    ...sceneFieldsInfo['windowInfo'],
];

// 药房组件

// 医技组件

// 业务组件


export function addContainerWidgetSchema(containerSchema) {
    containers.push(containerSchema);
}

export function addCustomWidgetSchema(widgetSchema) {
    customFields.push(widgetSchema);
}

export function addBizWidgetSchema(widgetSchema) {
    bizFields.push(widgetSchema);
}

export function addSceneWidgetSchema(widgetSchema) {
    sceneFields.push(widgetSchema);
}
